package com.sora;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * 启动类：部门
 */
//声明当前类是SpringBoot项目的启动类
@SpringBootApplication
//扫描mapper接口，生成mapper接口的代理对象 - service注入使用
@MapperScan("com.sora.*.mapper")
@ServletComponentScan(value = "com.sora.basic.listener")
public class App {
    public static void main(String[] args) {
        //使用启动类App去运行Spring项目
        SpringApplication.run(App.class);
    }
}
